package com.sky.service;

import com.sky.dto.*;
import com.sky.result.PageResult;
import com.sky.vo.OrderStatisticsVO;
import com.sky.vo.OrderSubmitVO;
import com.sky.vo.OrderVO;

public interface OrderService {

    OrderSubmitVO submit(OrdersSubmitDTO dto);

    /**
     * 订单支付
     * @param ordersPaymentDTO
     * @return
     */
    // OrderPaymentVO payment(OrdersPaymentDTO ordersPaymentDTO) throws Exception;

    /**
     * 支付成功，修改订单状态
     * @param outTradeNo
     */
    void paySuccess(String outTradeNo);

    PageResult getHistoryOrdersByPage(OrdersPageQueryDTO dto);

    OrderVO getOrderDetail(Long id);

    void cancelOrder(Long id);

    void repetition(Long id);

    PageResult search(OrdersPageQueryDTO dto);

    OrderStatisticsVO countStatus();

    OrderVO getDetails(Long id);

    void cancelOrderByDto(OrdersCancelDTO dto);

    void delivery(Long id);

    void confirm(OrdersConfirmDTO dto);

    void rejection(OrdersRejectionDTO dto);

    void complete(Long id);

    void reminder(Long id);

}
